/**
 * 用户个人信息修改视图
 */
Ext.define('app.view.dept.Edit',{
	extend:'Ext.window.Window',
	alias:'widget.deptstaffedit',
	title:'指定员工部门',
	id:'deptstaffedit',
	modal : true,
	//bodyPadding:5,
	//width:430,
	items:{
		xtype:'form',
		margin:5,
		defaultType:'displayfield',
		
		defaults:{		//表单默认属性
			//readonly:true,
			labelSeparator : ": ",
			labelWidth : 80,
			width : 320,
			allowBlank : false,	//表单不为空
			msgTarget : 'side',
			labelAlign:'right',	//标签右对齐
			blankText : '不能为空' ,
		},
		border:false,
		items:[

		       {xtype:'displayfield',name:'name',fieldLabel:'姓名',readOnly:true},
		       {
		    	   xtype:'combo',
		    	   name:'department',
		    	   fieldLabel:'部门',
		    	   queryMode: 'remote',
			       store: 'dept.SelectStore',				       
			       displayField: 'name',
			       valueField: 'id',
			   },		   
		]
		},
	buttons:[{
		text:'保存',action:'save'
	}],	
})


